package com.ljt.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author administrator
 * @since 2019-08-01
 */
@Data
@ApiModel(value="SysLog对象", description="日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "日志类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "日志标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "服务ID")
    @TableField("service_id")
    private String serviceId;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "操作IP地址")
    @TableField("remote_addr")
    private String remoteAddr;

    @ApiModelProperty(value = "用户代理")
    @TableField("user_agent")
    private String userAgent;

    @ApiModelProperty(value = "请求URI")
    @TableField("request_uri")
    private String requestUri;

    @ApiModelProperty(value = "操作方式")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "操作提交的数据")
    @TableField("params")
    private String params;

    @ApiModelProperty(value = "执行时间")
    @TableField("time")
    private String time;

    @ApiModelProperty(value = "删除标记")
    @TableField("del_flag")
    @TableLogic
    private String delFlag;

    @ApiModelProperty(value = "异常信息")
    @TableField("exception")
    private String exception;


}
